<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<c:forEach items="${list}" var="list" varStatus="status">
	<div class="group_list <c:if test="${status.index%2==1}">blue_list</c:if>">
		<div><input type="checkbox" value="${list.contactId }" name="checkbox" id="checkbox"/></div>
		<div id="name${list.contactId }" style="width: 80px;">${list.contactName}</div>
        <sec:authorize  ifAllGranted="通讯录操作" >
        <div class="text_outline 
        <c:if test="${list.contactUseFlag==1 ||list.contactUseFlag==null}">text_green</c:if><c:if test="${list.contactUseFlag==2}">text_red</c:if>
         text_m_left" id="${list.contactId}"><c:if test="${list.contactUseFlag==1 ||list.contactUseFlag==null}">已启用</c:if><c:if test="${list.contactUseFlag==2}">已禁用</c:if></div>
		<div class="edit_outline btn_edit" id="001" onmouseover="this.className='edit_outline btn_edit_on'" onmouseout="this.className='edit_outline btn_edit'" title="编辑" style="display: none">&nbsp;</div>
		</sec:authorize>
    </div>
   	</c:forEach>
   	<c:if test="${fn:length(list)==0}">
    	<div id="nothing" style="color: red;padding: 5px;text-align: center;">没有您要搜索的联系人!</div>
    </c:if>
</body>
</html>